package com.xxh.springclouddemo.consumer.interfaceApi;

import com.xxh.springclouddemo.common.pojo.Student;
import com.xxh.springclouddemo.consumer.service.OpenfeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author xxh
 * @Date 2024/4/15 22:39
 */
@FeignClient(value = "springclouddemo-openfeignapi",fallbackFactory = OpenfeignApiFallback.class)
public interface OpenfeignDemo {



    @RequestMapping("/getStudent")
    public List<Student> getStudent();

}
